package com.openx.xoj.judge.codesandbok.impl;

import org.junit.jupiter.api.Test;

import java.text.DecimalFormat;
import java.util.Random;

public class testMain {
    @Test
    public void test() {
        Random random = new Random();
        double mean = 3.0;//均值
        double standardDeviation = 0.8;//标准差
        for (int i = 0; i < 100; i++) {
            double gaussian = random.nextGaussian() * standardDeviation + mean;//生成高斯分布随机数
            System.out.println((long)gaussian);
        }

    }
}
